-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
動けるようにする #1288
base: fix/openapi
Are you sure you want to change the base?
動けるようにする #1288
Conversation
…er to the controller
@Eraxyso ありがとうございます!
みたいな感じでお願いしたいです |
↑prの説明に追記しました |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
基本的に良さそうです、少しだけ確認したいことがあったのでコメントしました。
userSet = userSet.Difference(groupUserSet) | ||
return userSet.ToSlice(), groups, nil | ||
} | ||
// func minimizeUsersAndGroups(users []string, groups []uuid.UUID) ([]string, []uuid.UUID, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多分これ、目的はusersをgroupsに含まれないものだけにする関数で、usersとgroupsを保存/更新するときに叩く想定で作ってそうだけど、rolloutだけあれば問題なさそうであれば、コメントアウトじゃなくて削除でもいいかも(gitなので)
description: 回答したもの(answered)か未回答のもの(unanswered)かを選別 | ||
schema: | ||
$ref: "#/components/schemas/AnsweredType" | ||
# answeredInQuery: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この辺は使ってなかったからコメントアウトした感じ?
args: args{ | ||
userID: questionnairesTestUserID, | ||
sort: "", | ||
search: "", | ||
pageNum: 100000, | ||
pageNum: 1, | ||
onlyTargetingMe: true, | ||
onlyAdministratedByMe: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すごい直感に反する命名なので、後でschemaから変えた方が良いかも。今はこれでOK
自分が管理者になっていないもののみ取得 (true), 管理者になっているものも含めてすべて取得 (false)。デフォルトはfalse。
Closes #1261
controller testに関する部分はあと #1271 でやります
変更箇所リスト: